<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>

	<script type="text/javascript"
		src="<%=request.getContextPath()%>/ofc2/swfobject.js"></script>
			<script type="text/javascript"
			src="../../My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/ofc2/json2.js"></script>

	<body bgcolor="#EDF7F9">
	
		查询时间：
		<input type="text" id="k2" name="k2"
									onfocus="WdatePicker({dateFmt:'yyyyMMdd'})"
									class="Wdate" size="22" style="CURSOR: hand" value="20120206"/>
		<input type="button" onclick="confirm()" value="提交" />
		
		
		<font size=2.5 color=red >时间格式：20120206</font>
		<br>
		<br>
				<div id="div1">

				</div>

			
	</body>
</html>

<script type="text/javascript" language="javascript">
////定义第一个Flash控件 时段车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div1", "60%", "350","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/tcsllServletin"}, 
 {wmode : "transparent"}
);

////定义第二个Flash控件 时段车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div2", "44%", "280","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/llDayServlet"}, 
 {wmode : "transparent"}
);

////定义第三个Flash控件 月车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div3", "44%", "280","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/llXunServlet"}, 
 {wmode : "transparent"}
);
//根据请求一个URL，重新加载第一个Flash控件的数据
function reload1()
{
  tmp = findSWF("div2");
  x = tmp.reload( "<%=request.getContextPath()%>/llDayServlet?s1=0002" ); 
}
		

//查找SWF控件	
function findSWF(movieName) 
{
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window[movieName];
  } else {
    return document[movieName];
  }
}
//下拉框查询
function change()
{
 tmp = findSWF("div1");
 var xlvalue=document.getElementById("s1").value;
  
  x = tmp.reload( "<%=request.getContextPath()%>/llDayServlet?s1="+xlvalue ); 
}

//查询按钮
function confirm()
{
 tmp = findSWF("div1");
 //var k1value=document.getElementById("k1").value;
   var k2value=document.getElementById("k2").value;
   tmp2 = findSWF("div2");
    tmp3 = findSWF("div3");
  x = tmp.reload( "<%=request.getContextPath()%>/tcsllServletin?k2="+k2value );
 // x = tmp2.reload( "<%=request.getContextPath()%>/llDayServlet?k1="+k1value+"&k2="+k2value );
 // x = tmp3.reload( "<%=request.getContextPath()%>/llXunServlet?k1="+k1value+"&k2="+k2value );
}
</script>
